﻿using IconYuan.Model.DTO.Products;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IconYuan.Model.Entity.Products
{

    /// <summary>
    /// 分类详情
    /// </summary>
    [SugarTable("t_goods_cate")]
    public class Cate
    {
        /// <summary>
        /// 分类ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] //是主键, 还是标识列
        public int category_id { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 父级分类ID
        /// </summary>
        public int parent_id { get; set; }
        /// <summary>
        /// 分类图片ID
        /// </summary>
        public int image_id { get; set; }
        /// <summary>
        /// 分类状态(1显示 0隐藏)
        /// </summary>
        public int status { get; set; } = 1;
        /// <summary>
        /// 排序 (数字越小越靠前)
        /// </summary>
        public int sort { get; set; } = 50;
        /// <summary>
        /// 店铺id
        /// </summary>
        public int store_id { get; set; }
        /// <summary>
        /// 是否是升级版本的分类: 0 否, 1 是
        /// </summary>
        public int is_upgrade { get; set; } = 0;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime create_time { get; set; }
        public DateTime update_time { get; set; }
    }
}
